python `IN` module problem (FreeBSD)

Posted by Shamanu4 on Stack Overflow See other posts from Stack Overflow or by Shamanu4
Published on 2010-06-09T15:05:01Z Indexed on 2010/06/09 16:02 UTC
Read the original article Hit count: 233

Filed under:
|

I'm trying to work with sockets and I have such problem

In code example:

setsockopt(socket.SOL_SOCKET,IN.SO_BINDTODEVICE,self.listen_address+'\0')

I have error

AttributeError: 'module' object has no attribute 'SO_BINDTODEVICE'

On Linux machine this attribute is OK but on FreeBSD trere are no any SO_* attributes in module IN. What port should I install to resolve this problem on FreeBDS machine?

Python versions on Linux tested: 2.5.4 and 2.6.4; on FreeBSD: 2.5.5

I can't find anything about this module in my book, and googling keyword IN looks like seamless ...

© Stack Overflow or respective owner

Related posts about python

Related posts about sockets